
<?php
/**
 * @authors alex (20779512@qq.com)
 * @date    2014-03-24 17:25:39
 * @version 1.0
 */

class SmsAction extends AdminAction {
    
    #网站设置
    public function index(){
    	$this->display();
    }
    
    #保存配置
    public function insert(){

    	$file=I('post.files');
		unset($_POST['files']);
		
		if($this->update_config($_POST,CONF_PATH.$file)){
			$state = 'SUCCESS';
          	$message = '操作成功';
		}else{
			$state = '操作失败';
		}
		echo $this->echo_json_str($state,$message,$url);
    }
}